package org.callisto.model;

import java.util.Comparator;

public class PressureComparator implements Comparator<Event> {

	public int compare(Event event1, Event event2) {
		if (event1.getPressure() < event2.getPressure()) {
			return -1;
		} else if (event1.getPressure() > event2.getPressure()) {
			return 1;
		} else {
			return 0;
		}
	}
}
